package org.jeecg.modules.pos.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.jeecg.modules.pos.entity.PosOrderGoodsDetail;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * @Description: pos_order_goods_detail
 * @Author: jeecg-boot
 * @Date:   2023-04-13
 * @Version: V1.0
 */
public interface PosOrderGoodsDetailMapper extends BaseMapper<PosOrderGoodsDetail> {

    @Select("select pogd.*,cg.name as goods_name from pos_order_goods_detail pogd " +
            "left join ces_goods cg on pogd.goods_id =  cg.id " +
            "where pogd.order_id = #{code} ")
    List<PosOrderGoodsDetail> getGoodsDetail(String codes);
}
